package com.work.project3.controller;

import com.work.project3.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class TestController {

    @Autowired
    TestMapper testMapper;

    @GetMapping("/list")
    public List<Map<String, Object>> list() {
        return testMapper.test();
    }
}
